//
//  LGSDKConfigure.m
//  GameDemo
//
//  Created by Happy on 12/16/16.
//  Copyright © 2016 Happy. All rights reserved.
//

#import "LGSDKConfigure.h"
#import "LGLocalData.h"

@interface LGSDKConfigure ()
@end


@implementation LGSDKConfigure

static LGSDKConfigure *manager = nil;
+ (instancetype)sharedInstance {
    if (!manager) {
        manager = [[LGSDKConfigure alloc] init];
    }
    
    return manager;
}

- (NSString *)projectChannelId {
    if (_projectChannelId) {
        return _projectChannelId;
    }
    return @"";
}

- (NSString *)appProductId {
    if (_appProductId) {
        return _appProductId;
    }
    return @"";
}

- (NSString *)uid {
//    if ([HRSettings shareInstance].userInfo.uid) {
//        return [HRSettings shareInstance].userInfo.uid;
//    }
    
    return @"";
}


- (int)isReview {
    if ([LGSDKConfigure sharedInstance].serverProcess == LGSDKProcessTypeLiveApp) {
        return _isReview;
    } else {
        return 1;
    }
}
@end
